package com.rockcent.mall.lib.repository;

import com.rockcent.common.domain.enumclass.Whether;
import com.rockcent.mall.lib.domain.MallFinancialSettings;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * Created by zhangjh on 2017/3/29.
 */
public interface MallFinancialSettingsRepository extends JpaRepository<MallFinancialSettings, Long>, JpaSpecificationExecutor {


    MallFinancialSettings findTop1ByMallIdAndIsDeleteOrderByLastUpdatedDesc(Long mallId, Whether no);

    List<MallFinancialSettings> findByIsDelete(Whether no);
}
